package com.ygqh.baby.config;

import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServerConfig {
	
	/**
	 * 修改url映射
	 *
	 * @param dispatcherServlet
	 * @return
	 * @author SHANHY
	 * @create 2016年1月6日
	 */
	@Bean
	public ServletRegistrationBean servletRegistration(ServletRegistrationBean registration) {
		registration.getUrlMappings().clear();
		registration.addUrlMappings("*.do");
		return registration;
	}

}
